import request from "@/utils/request";

/**
 * 获取指定日期和店铺的预约时间段
 * @param storeId 店铺ID
 * @param bookingDate 预约日期，格式为YYYY-MM-DD
 * @returns
 */
export const getBookingTimeSlots = (storeId: string, bookingDate: string) => {
  return request({
    url: `/bookings/time`,
    method: "get",
    params: {
      storeId,
      bookingDate
    }
  });
};

/**
 * 获取指定日期和店铺的预约时间段详情，包含摄影师和化妆师信息
 * @param storeId 店铺ID
 * @param bookingDate 预约日期，格式为YYYY-MM-DD
 * @returns 返回预约时间段详情，包括每个时间段的预约人数、摄影师和化妆师信息
 */
export const getBookingTimeSlotsDetail = (
  storeId: string,
  bookingDate: string
) => {
  return request({
    url: `/bookings/timeDetail`,
    method: "get",
    params: {
      storeId,
      bookingDate
    }
  });
};
